<?php
// +----------------------------------------------------------------------
// | ThinkBLOG (Build on ThinkPHP)
// +----------------------------------------------------------------------
// | @link ( http://www.yurnero.net )
// +----------------------------------------------------------------------
// | @licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | @author nicholas <nicholasinlove@126.com>
// +----------------------------------------------------------------------
// | $Id: index.php 141 2012-04-20 07:47:14Z nicholasinlove1986@gmail.com $
// +----------------------------------------------------------------------


if (! file_exists ( './config.php' ))
	die ( 'Missing Config File' );

//TODO remove!
error_reporting ( E_ALL );
define ( 'APP_DEBUG', true );
//TODO

define ( 'THINKBLOG_ROOT', str_replace ( '\\', '/', dirname ( __FILE__ ) ) . '/' );
define ( 'THINKBLOG_PATH', str_replace ( 'index.php', '', $_SERVER ['SCRIPT_NAME'] ) );
define ( 'APP_NAME', 'Apps' );
define ( 'APP_PATH', './Apps/' );
define ( 'RUNTIME_PATH', './Temp/' );
require './ThinkPHP/ThinkPHP.php';
//require './ThinkPHP/Extend/Engine/Sae.php';